<?php include incTemplate('header');?>

<link
	href="<?php echo HT;?>css/pagesplit.css" rel="stylesheet"
	type="text/css" />
<style>
body {
	background: #fff url(<?php echo HT?>/images/ewf.gif) repeat-x;
}
.tdright{text-align:left;padding-left:5px;}
.tdleft{text-align:right;padding-right:5px;}
.tal{text-align:left;padding-left:5px;}
.spmsg{margin-left:10px;color:#999999;}
</style>
<script type="text/javascript">
$(function(){
    var imgs = $("#td_imgs img");
    $("#td_imgs img").click(function(){
        //设置当前的imgsrc
        lastimg = $(this).attr("src").substr($(this).attr("src").lastIndexOf('/')+1);
        
        if(lastimg.indexOf('g_')!=-1){
            $("#faceimg").val(lastimg.substr(lastimg.indexOf('g_')+2));
            $(this).attr('src','<?php echo HT;?>images/face/'+lastimg.substr(lastimg.indexOf('g_')+2));
        }else{
            $("#faceimg").val($lastimg);
        }
        
        var cursrc = this.src;
        
        imgs.each(function(i){
            if(this.src != cursrc){
                var lastname = $(this).attr("src").substr($(this).attr("src").lastIndexOf('/')+1);
                if(lastname.indexOf('g_')==-1){
                	this.src = '<?php echo HT; ?>images/face/g_'+lastname;
                }
            }
            
        });
        
    });
    
});
function sendMessage(){
	var title = document.getElementById("msg_title").value;
	var content = document.getElementById("msg_content").value;
	var leaver = $("#leaver").val();

	if(title==""|| typeof(title)==undefined){
		alert('<?php echo $bfb_titlecantnotempty;?>');
		return;
	}

	if(content==""|| typeof(content)==undefined){
		alert('<?php echo $bfb_contentcantnotempty;?>');
		return;
	}

	if(content.length<20){
		alert('<?php echo $bfb_contentisshort;?>');
		return;
	}

	if(leaver == "" || typeof(leaver)==undefined){
		alert('<?php echo $bfb_megisnotnull;?>');
		return;
	}
 
	document.form1.submit();
	
}
function changePic(img){
    img.src = "<?php echo HH; ?>inc/checkcode.php?_rd="+ Date.parse(new Date());
    
}

</script>
</head>
<body>
<div class="container"><?php include incTemplate('header_bar');?>
<div class="clear">
<table style="background:url(<?php echo HT?>flv/06.jpg);" width="950" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="950" height="230"><object id="FlashID"
			classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="950"
			height="230">
			<param name="movie" value="<?php echo HT?>flv/banner.swf" />
			<param name="quality" value="high" />
			<param name="wmode" value="transparent" />
			<param name="swfversion" value="8.0.35.0" />
			<!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
			<param name="expressinstall"
				value="<?php echo HT?>flv/Scripts/expressInstall.swf" />
			<!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 --> <!--[if !IE]>--> <object
				type="application/x-shockwave-flash"
				data="<?php echo HT?>flv/banner.swf" width="950" height="230"> <!--<![endif]-->
				<param name="quality" value="high" />
				<param name="wmode" value="transparent" />
				<param name="swfversion" value="8.0.35.0" />
				<param name="expressinstall"
					value="<?php echo HT?>flv/Scripts/expressInstall.swf" />
				<!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 --> <!--[if !IE]>-->
			</object> <!--<![endif]--> </object></td>
	</tr>
</table>
</div>

<div class="divcontent">
<div class="left">
<div class="leftbar">
<div class="listhead"
	style="background-color: #D0C5A6; height: 28px; line-height: 30px; padding-left: 10px"><?php echo $bfb_message;?></div>
<div class="leftbarcontent">
<ul>
	<li><img src="<?php echo HT;?>/images/img8.jpg" />&nbsp;&nbsp;<a
		href="/index.php/message/index/1/10.html"><?php echo $bfb_message;?></a></li>
</ul>
</div>
<?php include incTemplate('part_contact');?></div>
</div>
<div class="right">


<form name="form1" action="/index.php/message/sendmessage.html"
	method="post">
<input type="hidden" name="faceimg" id="faceimg" value="mes-express-01.gif" />     
<div class="contentdiv" >
<div class="listhead"><?php echo $bfb_position; ?><a
	style="font-size: 12px;" href="/"><?php echo $bfb_home;?></a> │<?php echo $bfb_addmessage;?></div>
<table style="width:100%;">
    <tr>
        <td class="tdleft"><?php echo $bfb_title;?></td><td class="tdright"><input
		type="text" id="msg_title" name="msg_title" style="width: 200px;" /><span class="spmsg"><?php echo $bfb_titleisnotnull;?></span></td>
    </tr>
    <tr>
        <td class="tdleft" valign="top"><?php echo $bfb_content;?></td>
        <td   class="tdright" >
        <textarea id="msg_content"
		name="msg_content" style="width: 95%; height: 70px;"></textarea>
        </td> 
    </tr>
        <tr>
        <td  class="tdleft" ><?php echo $bfb_smaile;?></td><td  class="tdright" id="td_imgs"  >
            <img src="<?php echo HT;?>/images/face/mes-express-01.gif" />&nbsp;
    <img src="<?php echo HT;?>/images/face/g_mes-express-02.gif" />&nbsp;
    <img src="<?php echo HT;?>/images/face/g_mes-express-03.gif" />&nbsp;
    <img src="<?php echo HT;?>/images/face/g_mes-express-04.gif" />&nbsp;
    <img src="<?php echo HT;?>/images/face/g_mes-express-05.gif" />&nbsp;
        </td> 
    </tr>
        <tr>
        <td  class="tdleft" ><?php echo $bfb_leaver;?></td><td  class="tdright" ><input
		type="text" id="leaver" name="leaver" style="width: 200px;" /><span class="spmsg"><?php echo $bfb_megisnotnull;?></span></td> 
    </tr>
        <tr>
        <td class="tdleft" ><?php echo $bfb_sex;?></td><td  class="tdright" >
            <input type="radio" name="sex" value="男" checked="checked"/><?php echo $bfb_man;?>&nbsp;&nbsp;<input name="sex" type="radio" value="女"/><?php echo $bfb_woman;?>
        </td> 
    </tr>
        <tr>
        <td class="tdleft" ><?php echo $bfb_phone;?></td><td  class="tdright" ><input
		type="text" id="phonenumber" name="phonenumber" style="width: 200px;" /></td> 
    </tr>
        <tr>
        <td class="tdleft" ><?php echo $bfb_compname;?></td><td  class="tdright" ><input
		type="text" id="compname" name="compname" style="width: 200px;" /></td> 
    </tr>
            <tr>
        <td class="tdleft" ><?php echo $bfb_inwhere;?></td><td  class="tdright" ><input
		type="text" id="inwhere" name="inwhere" style="width: 200px;" /></td> 
    </tr>
            <tr>
        <td class="tdleft" ><?php echo $bfb_address;?></td><td  class="tdright" ><input
		type="text" id="address" name="address" style="width: 200px;" /></td> 
    </tr>
            <tr>
        <td class="tdleft" ><?php echo $bfb_ckcode;?></td><td  class="tdright" ><input
		type="text" id="ckcode" name="ckcode" style="width: 200px;" />&nbsp;&nbsp;<img title="<?php echo $bfb_changepic;?>" onclick="changePic(this)" src="<?php echo HH; ?>inc/checkcode.php" /></td> 
    </tr>
            <tr>
        <td colspan="3">
        <input type="button"
		value="<?php echo $bfb_submit;?>" onclick="sendMessage()" />
        </td>
    </tr>
</table>

</div>
</form>

</div>
</div>


<div class="neiye"><img width="953" height="17"
	src="<?php echo HT?>/images/neiye7_25.gif"></div>
<?php include incTemplate('footer_inside');?></div>
</body>
</html>
